package com.gh.client.fallback;

import com.gh.client.CoreUserInfoClient;
import com.gh.common.result.R;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @Author Eric
 * @Date 2021/9/28 19:41
 * @Version 1.0
 */
@Slf4j
@Service
public class CoreUserInfoClientFallback implements CoreUserInfoClient {
    @Override
    public R checkMobile(String mobile) {
        log.error("远程调用失败，服务熔断");
        return R.ok().data("isExist",false);
    }
}
